﻿using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace mozhi.smarterp.AuthorCenter.OpenIddict.Repositories
{
    public interface IOpenIddictClientTypeRepository : IRepository<OpenIddictClientType, Guid>
    {
        Task<int> GetCountAsync(string clientId, CancellationToken cancellationToken = default);

        Task<List<OpenIddictClientType>> GetListAsync(string sorting = null, int maxResultCount = int.MaxValue, int skipCount = 0, string clientId = null, CancellationToken cancellationToken = default);

        Task<OpenIddictClientType> GetAsync(string clientId, CancellationToken cancellationToken = default);
    }
}
